﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>联合国工业发展组织国际工业分包与合作交流(SPX)西安中心</title>
   <script type="text/javascript">
       function ShowCompanyMes(sender, args) {
         var id = args.getDataKeyValue("ID");
         window.open("Default3.aspx?id=" + id, '_self');               
    }
   </script>
<link href="css/reset.css" rel="stylesheet" type="text/css" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/spx.js"></script>
</head>
  <body>
   <form id="form1"  runat="server">
       <div class="wraper">
          <h1><a href="ComponentsIntro.aspx" class="btnlink radius" style="float:right; margin-top:15px;">加入零部件库</a>零部件详细</h1>
          <span>当前位置：<asp:SiteMapPath ID="SiteMapPath1" target="_blank" runat="server"  OnItemDataBound="SiteMapPath1_ItemDataBound"/></span>
          <div id="container">
              <div style="width:49%; float:left;">
                <h3>二维尺寸图</h3>
                   <div class="xx-box radius" >
                      <div style="height:220px; overflow:hidden; background-color:#fff; line-height:220px; text-align:center;">
                          <telerik:RadBinaryImage ID="RadBinaryImage2"  runat="server"  Width="300px" 
                              Height="300px" BackColor="#FFFFCC"  ResizeMode="Fit" BorderStyle="None" />
                      </div>
                   </div>
                   <a href="#">零部件原网址</a>
               </div>
              <div style="width:49%; float:right;">
                      <h3>三维模型图</h3>
                      <div class="xx-box radius">
                         <div style="height:220px; overflow:hidden; background-color:#fff; line-height:220px; text-align:center;">
                           <telerik:RadBinaryImage ID="RadBinaryImage3" runat="server"  Width="300px" 
                              Height="300px" ResizeMode="Fit" BorderStyle="None" BackColor="#336699"/>
                        </div>
                     </div>
                      动态浏览，<a href="#">请下载安装动态浏览工具 </a>
                    </div>
              <div class="clear"></div>
              <h3>配置参数</h3>
              <div class="xx-box radius" style="margin-bottom:-3px;  height:210px">
                        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
                        <telerik:RadWindowManager ID="Singleton" Skin="Outlook"  ReloadOnShow="true"
                               VisibleStatusbar="false" Behaviors="Close,Move" runat="server" >
                        </telerik:RadWindowManager>
                        <table border="0" cellspacing="5" cellpadding="0">
                           <tr>
                              <th width="650px" scope="col"><h3>驱动参数</h3>
                                 <telerik:RadListView ID="listBox_NonCustomParamList1" runat="server" DataKeyNames="FamilyID,ID" 
                                              EnablePersistedSelection="false" AllowPaging="True"   BorderStyle="None">
                                        
                                        <ItemTemplate>
                                            <tr style="background: white; font: 12px/16px segoe ui; line-height: 25px;">
                                               <td>
                                                   <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("DisplayName") +"("+Eval("Name").ToString().Substring(2)+")"%>'></asp:Label>
                                               </td>
                                               <td>
                                                   <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
                                                        <telerik:RadComboBox id="ddl" runat="server"  AutoPostBack="true" onselectedindexchanged="ddl_SelectedIndexChanged"
                                                             EnableLoadOnDemand="True" MarkFirstMatch="True"  Width="80px" EnableVirtualScrolling="true" OnItemsRequested="ddl_ItemsRequested">
                                                        </telerik:RadComboBox>
                                                   </telerik:RadAjaxPanel>
                                               </td>
                                            </tr>
                                       </ItemTemplate>
                                        <AlternatingItemTemplate>
                                             <tr style="background: #fff; font: 12px/16px segoe ui; line-height: 25px;">
                                                <td>
                                                    <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("DisplayName") +"("+Eval("Name").ToString().Substring(2)+")"%>'></asp:Label>
                                                </td>
                                                <td>
                                                     <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
                                                            <telerik:RadComboBox id="ddl" runat="server"  AutoPostBack="true" onselectedindexchanged="ddl_SelectedIndexChanged"
                                                             EnableLoadOnDemand="True" MarkFirstMatch="True" Width="80px"  EnableVirtualScrolling="true" OnItemsRequested="ddl_ItemsRequested">
                                                             </telerik:RadComboBox>
                                                     </telerik:RadAjaxPanel>
                                                 </td>
                                             </tr>
                                        </AlternatingItemTemplate>
                                        <EmptyDataTemplate>
                                              <table id="Table1" runat="server" style="">
                                                 <tr><td>没有数据.</td></tr>
                                              </table>
                                        </EmptyDataTemplate>
                                        <LayoutTemplate>
                                            <table id="Table2" runat="server" cellpadding="0" cellspacing="0" style="border: 1px  #C3C3C3;width: 100%;">
                                                <tr id="Tr1" runat="server">
                                                   <td id="Td1" runat="server">
                                                       <table id="itemPlaceholderContainer" runat="server" border="0" style="font: 12px/16px segoe ui;
                                                                 width: 100%;" cellspacing="0">
                                                           <tr id="Tr2" runat="server" style="background: #EDEDED; line-height: 25px;">
                                                              <th id="Th2" runat="server" style="text-align: left; font-weight: normal;background-color:#ADD3F7;width:150px">
                                                                  参数别名
                                                              </th>
                                                              <th id="Th3" runat="server" style="text-align: left; font-weight: normal;background-color:#ADD3F7">
                                                                   参数数据
                                                              </th>
                                                           </tr>
                                                           <tr id="itemPlaceholder" runat="server"></tr>
                                                       </table>
                                                   </td>
                                                </tr>
                                            </table>
                                        </LayoutTemplate>
                                 </telerik:RadListView>
                              </th>
                           </tr>
                           <tr>
                             <td>
          <asp:ListView ID="listBox_CustomParamList1" runat="server" DataKeyNames="FamilyID" EnablePersistedSelection="false" AllowPaging="True">
              <ItemTemplate>
                 <tr style="background: #fff; font: 12px/16px segoe ui; line-height: 25px;">
                    <td style="width:150px">
                        <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("DisplayName") %>'></asp:Label>
                    </td>
                    <td>
                       <asp:TextBox ID="Label1" runat="server" Text='<%# Eval("Value") %>' width="80px"></asp:TextBox>
                    </td>
                    <td style="display: none;">
                       <asp:LinkButton ID="SelectButton2" runat="server" Text="選択" CommandArgument='<%#Eval("FamilyID")%>' OnClick="LbtnLink_Click" />
                    </td>
                 </tr>
              </ItemTemplate>
              <AlternatingItemTemplate>
                 <tr style="background: #EDEDED; font: 12px/16px segoe ui; line-height: 25px;">
                    <td style="width:150px">
                       <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("DisplayName") %>'></asp:Label>
                    </td>
                    <td>
                       <asp:TextBox ID="Label1" runat="server" Text='<%# Eval("Value") %>' width="80px"></asp:TextBox>
                    </td>
                    <td style="display: none;">
                       <asp:LinkButton ID="SelectButton2" runat="server" Text="選択" CommandArgument='<%#Eval("FamilyID")%>' OnClick="LbtnLink_Click" />
                    </td>
                 </tr>
             </AlternatingItemTemplate>
              <EmptyDataTemplate>
                 <table id="Table1" runat="server" style="">
                    <tr>
                       <td>没有用户参数数据.</td>
                    </tr>
                 </table>
             </EmptyDataTemplate>
              <LayoutTemplate>
                 <table id="Table2" runat="server" cellpadding="0" cellspacing="0" style="border: 1px  #C3C3C3; width: 100%;">
                    <tr id="Tr1" runat="server">
                        <td id="Td1" runat="server">
                            <table id="itemPlaceholderContainer" runat="server" border="0" style="font: 12px/16px segoe ui;width: 100%;" cellspacing="0">
                               <tr><th><h3>用户参数</h3></th></tr>
                               <tr id="Tr2" runat="server" style="background: #ADD3F7; line-height: 25px;">
                                   <th id="Th1" runat="server" style="text-align: left; font-weight: normal; width:150px">名称</th>
                                   <th id="Th4" runat="server" style="text-align: left; font-weight: normal;">数据</th>
                               </tr>
                               <tr id="itemPlaceholder" runat="server"></tr>
                            </table>
                        </td>
                     </tr>
                 </table>
             </LayoutTemplate>
          </asp:ListView>
        </td>
                           </tr>
                           <tr>
                             <td>
           <telerik:RadGrid ID="dataGridView_subFamilyTable" runat="server" ItemStyle-BackColor="#3366CC" BorderStyle="none" >
                  <ClientSettings EnableRowHoverStyle="true">
                      <Selecting AllowRowSelect="True"></Selecting>
                  </ClientSettings>
                 <MasterTableView HorizontalAlign="center" AutoGenerateColumns="false" HeaderStyle-BackColor="White" > 
                    <EditFormSettings>
                      <EditColumn InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif" EditImageUrl="Edit.gif" CancelImageUrl="Cancel.gif"></EditColumn>
                    </EditFormSettings>
                    <ItemStyle BackColor="#ADD3F7"></ItemStyle>
                    <HeaderStyle BackColor="#ADD3F7"></HeaderStyle> 
                    <CommandItemStyle BorderStyle="Outset" ></CommandItemStyle>
                 </MasterTableView> 
          </telerik:RadGrid>
        </td>
                           </tr>
                        </table>
                     </div>
              <div class="xx-box radius">
    <table width="99%" border="0" cellspacing="5" cellpadding="0">
      <tr>
        <td width="23%"><h3>请选择下载格式：</h3></td>
        <td width="38%">
            <telerik:RadComboBox id="comboBox_filetype" runat="server"  EnableTextSelection="false" width="80px">
                      <Items>
                         <telerik:RadComboBoxItem  Text="STP"/>
                         <telerik:RadComboBoxItem Text="IGS"/>
                         <telerik:RadComboBoxItem Text="DWF"/>
                         <telerik:RadComboBoxItem Text="SAT"/>
                         <telerik:RadComboBoxItem Text="IPT"/>
                      </Items>
                   </telerik:RadComboBox>
        </td>
        <td width="39%" align="right">
           <asp:Button ID="Download" runat="server" Text="下载"  onclick="Download_Click"/>
        </td>
      </tr>
    </table>
  </div>
              <div style="width:49%; float:left;">
  <h3>产品基本信息</h3>
    <div class="xx-box radius" >
      <div style="height:90px">
        <ul>
          <li>产品名称： <asp:Label ID="Label4" runat="server"></asp:Label></li>
          <li>产品介绍：<br /><asp:Textbox  ID="richTextBox_description" runat="server" Width="290px"  BorderStyle="None" Height="45px" ReadOnly="true" TextMode="MultiLine"/></li>
        </ul>
     </div>
    </div>
  </div>
              <div style="width:49%; float:right;">
   <h3>相关资源下载</h3>
    <div class="xx-box radius">
      <div style=" background-color:#fff; padding:5px; border: solid 1px #ccc; height:80px">
        <p>直接点击文档名下载</p>
        <ul class="list">
          <li><asp:LinkButton ID="Label1"  runat="server" OnClick="button_downDoc_Click" ></asp:LinkButton>(技术文档)</li>
           <li><asp:LinkButton ID="Label2" runat="server" OnClick="model_downDoc_Click" ></asp:LinkButton>(模型截图)</li>
            <li><asp:LinkButton ID="Label3" runat="server" OnClick="engineering_downDoc_Click" ></asp:LinkButton>(工程截图)</li>
        </ul>
      </div>
    </div>
  </div>
           </div>
          <div id="sidebar">
            <h3>供应商信息 </h3>
            <div class="xx-box radius" style="margin-bottom:30px;">
            <div style="height:220px;">
    <ul>
      <li>企业名称：<asp:Label ID="textBox_vendor" runat="server" ></asp:Label><br /></li>
      <li>企业介绍：<asp:TextBox ID="Vendor_Des" runat="server" Height="200px"   Width="225px" ReadOnly="true" TextMode="MultiLine" BorderStyle="None" /></li>
    </ul>
  </div>
          </div>
  <h3 >合作企业</h3>
<div class="xx-box radius">
  <div style="height:450px;">
    <div style="margin-bottom:8px;">
       <telerik:RadGrid ID="radGridVendorlist" AllowPaging="true" AllowSorting="True"  BackColor="Transparent" BorderStyle="None" Height="450px"
                         DataSourceID="sdsVendorList"  runat="server" AutoGenerateColumns="False" AllowMultiRowSelection="True"   Skin="Vista" 
                         PageSize="15"   ShowHeader="False" AllowAutomaticInserts="true" >
            <ClientSettings Selecting-AllowRowSelect="true" EnableRowHoverStyle="true">
                 <ClientEvents   OnRowClick="ShowCompanyMes"  />
                 <Scrolling  AllowScroll="true"  UseStaticHeaders="true"/>
            </ClientSettings>
            <PagerStyle  Mode="NextPrev"  PrevPageToolTip="上一页"   NextPageToolTip="下一页"  ShowPagerText="false" 
                         FirstPageToolTip="首页" LastPageToolTip="末页"  VerticalAlign="Middle"/>
                            
            <MasterTableView DataKeyNames="ID" ClientDataKeyNames="ID"  ShowHeadersWhenNoRecords="false"  >
                  <CommandItemSettings ExportToPdfText="Export to Pdf"  />
                      <Columns>
                           <telerik:GridBoundColumn AllowFiltering="false" AllowSorting="false"  DataField="Name"   
                                       FooterStyle-BorderStyle="None" Groupable="false" HeaderButtonType="LinkButton" 
                                        HeaderStyle-BorderStyle="None"  ItemStyle-BorderStyle="None" Resizable="false" UniqueName="Logo" Reorderable="False">
                           </telerik:GridBoundColumn>
                      </Columns>
            </MasterTableView>
      </telerik:RadGrid> 
    </div>
  </div>
</div>
</div>
       </div>   
       <asp:SqlDataSource ID="sdsVendorList" runat="server" 
        ConnectionString="<%$ ConnectionStrings:XunPanConnectionString %>" 
        SelectCommand="SELECT * FROM [Vendors]">
</asp:SqlDataSource> 
   </form>
</body>
</html>
